import Layout from '@/layout'

const msOrderRouter = {
  path: '/amszs/order/',
  component: Layout,
  redirect: '/amszs/order/index',
  name: 'MsOrder',
  alwaysShow: true,
  meta: {
    title: '订单管理',
    icon: 'clipboard'
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/amszs/order/index'),
      name: 'OrderIndex',
      meta: { title: '订单列表' }
    },
    {
      path: 'orderDetail/:id?',
      component: () => import('@/views/amszs/order/orderDetail.vue'),
      name: 'OrderDetail',
      meta: { title: '订单详情' }
    },
  ]
}

export default msOrderRouter
